<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cmsNewsData-edit" object="${cmsNewsData}">
            <input id="id" name="id"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">内容编码：</label>
                <div class="col-sm-8">
                    <input id="contentId" name="contentId" value="${contentId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">主标题：</label>
                <div class="col-sm-8">
                    <input id="title" name="title" value="${title}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">完整标题：</label>
                <div class="col-sm-8">
                    <input id="fullTitle" name="fullTitle" value="${fullTitle}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">转向链接：</label>
                <div class="col-sm-8">
                    <input id="link" name="link" value="${link}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否在新窗口打开：</label>
                <div class="col-sm-8">
                    <input id="isNewWindow" name="isNewWindow" value="${isNewWindow}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">颜色：</label>
                <div class="col-sm-8">
                    <input id="color" name="color" value="${color}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">文档路径：</label>
                <div class="col-sm-8">
                    <input id="newsPath" name="newsPath" value="${newsPath}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">文档模板：</label>
                <div class="col-sm-8">
                    <input id="newsTemplate" name="newsTemplate" value="${newsTemplate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">meta描述：</label>
                <div class="col-sm-8">
                    <input id="description" name="description" value="${description}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">来源名称：</label>
                <div class="col-sm-8">
                    <input id="source" name="source" value="${source}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">来源url：</label>
                <div class="col-sm-8">
                    <input id="sourceUrl" name="sourceUrl" value="${sourceUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">填写内容：</label>
                <div class="col-sm-8">
                    <input id="content" name="content" value="${content}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否允许评论：</label>
                <div class="col-sm-8">
                    <input id="isAllowComment" name="isAllowComment" value="${isAllowComment}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">审核步骤名称：</label>
                <div class="col-sm-8">
                    <input id="stepName" name="stepName" value="${stepName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">排序：</label>
                <div class="col-sm-8">
                    <input id="sort" name="sort" value="${sort}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">作者：</label>
                <div class="col-sm-8">
                    <input id="author" name="author" value="${author}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="remark" value="${remark}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <%@ include file="/WEB-INF/views/include/footer.jsp"%>
    <script type="text/javascript">
		var prefix = ctx + "cms/cmsNewsData"
		$("#form-cmsNewsData-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-cmsNewsData-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
